import {CommonResult} from "../components/MasterModal/plugins/dto";

export type CommonPageRequest<T> = {
    currentPage: number;
    pageSize: number;
} & Partial<T>



export interface CommonPageResponse<T>{
    code: number;
    msg: string;
    data: {records: T[], total: number};
}



export interface BrandResponseDto {
    "cnName": string,
    "code": string,
    "commodityPicture": string,
    "companyName": string,
    "createdTime": string,
    "enName": string,
    "enabled": number,
    "id": number,
    "logo": string,
    "standardCode": string,
    "updatedTime": string
}

export interface UnitResponseDto {
    "cnName": string,
    "code": string,
    "createdTime": string,
    "createdUserId": number,
    "createdUserName": string,
    "enName": string,
    "enabled": boolean,
    "id": number
}


export interface ParamDto{
    "code": string,
    "id": string,
    "memo": string,
    "name": string,
    "paramType": string,
    "parentId": string,
    "parentName": string,
    "sortIndex": number
}


export interface RegistritionResponseDto {
    "commodityLicense":  {
        "agentAddress": string,
        "agentName": string,
        "annex": string,
        "applyType": number,
        "approvalDate": string,
        "approvalDepartment": string,
        "auditTime": string,
        "auditUserId": number,
        "changes": string,
        "comment": string,
        "storageConditions": string,
        "createdTime": string,
        "createdUserId": number,
        "effDate": string,
        "expectPurpose": string,
        "flagBit": number,
        "id": number,
        "licenseAddress": string,
        "licenseCode": string,
        "licenseName": string,
        "licenseType": number,
        "managementCategory": string,
        "mdResult": number,
        "otherContents": string,
        "periodValidity": string,
        "picture": string,
        "productDescription": string,
        "productName": string,
        "productionAddress": string,
        "serialNo": string,
        "source": string,
        "sourceDataId": string,
        "sourceDataNo": string,
        "sourceTenantId": string,
        "sourceTenantName": string,
        "specification": string,
        "specificationInAnnex": string,
        "standardCode": string,
        "status": number,
        "updatedTime": string,
        "updatedUserId": number,
        "usCreditCode": string
    },
    "mdCommodityLicense": {
        "agentAddress": string,
        "agentName": string,
        "annex": string,
        "approvalDate": string,
        "approvalDepartment": string,
        "auditTime": string,
        "auditUserId": number,
        "changes": string,
        "comment": string,
        "storageConditions": string,
        "createdTime": string,
        "createdUserId": number,
        "effDate": string,
        "enabled": true,
        "expectPurpose": string,
        "flagBit": number,
        "id":number,
        "licenseAddress": string,
        "licenseCode": string,
        "licenseName": string,
        "licenseType": number,
        "managementCategory": string,
        "mergeCode": string,
        "otherContents": string,
        "periodValidity": string,
        "picture": string,
        "productDescription": string,
        "productName": string,
        "productionAddress": string,
        "serialNo": string,
        "source": string,
        "sourceDataId": string,
        "sourceDataNo": string,
        "sourceTenantId": string,
        "sourceTenantName": string,
        "specification": string,
        "specificationInAnnex": string,
        "standardCode": string,
        "updatedTime": string,
        "updatedUserId": number,
        "usCreditCode": string,
        "version": number
    }
}